<layout name="layout" />
<form action="{:U('Order/insert')}" method="post" id="form">
<section class="wrapper marc address">
  <header>
    <figcaption>您的地址</figcaption>
  </header>
  <p class="address"><span class="tit">收货地址：</span><span>
    <volist name="area" id="area_val"> {$area_val.name}&nbsp; </volist>
    {$user_ext.user_address} </span></p>
    
    
    

  <p class="hints">不是以上地址请重新填写</p>
  <fieldset>
    <p class="area"> <span class="tit">所在地区:</span>
      <select id="country" name="country" title="国家" class="sel_lt country" style="color: #999999;">
        <option value="">请选择国家...</option>
      </select>
      <select id="city" name="city" title="城市" class="sel_lt province"  style="color: #999999;">
        <option value="">请选择城市...</option>
      </select>
      <select id="area" name="area" title="地区" class="sel_lt" style="color: #999999;">
        <option value="">请选择地区...</option>
      </select>
      <span class="red">*</span> </p>
    <p class="street"> <span class="tit">街道地址:</span>
      <textarea name="address"></textarea>
      <span class="red">*</span> <span class="info">不需要重复填写省/市/区</span> </p>
      <input type="hidden" name="car_data_code" value="{$_POST|json_encode|md5}" />
      <textarea name="cart_data" style="display:none">{$_POST|json_encode}</textarea>
      <input type="submit" style="display:none" />
    <p class="button" id="submit">
      <button>确&nbsp;&nbsp;定</button>
    </p>
  </fieldset>

  
</section>
</form>
<script type="text/javascript">
    $(document).ready(function() {
		//初始 省、市、区
	    ajax_address(0, 'country', '');
	    ajax_address('', 'city', '');
	    ajax_address('', 'area', '');
		$("#form").submit(function(){
			
		});
    	$("#submit").click(function() {
    		$("#form").submit();
    	});
    })
</script> 
